package com.prp.db.idao;

import java.util.List;

import com.prp.db.po.Mailbox;

public interface IMailboxDAO {
	public void save(Mailbox transientInstance);

	public void delete(Mailbox persistentInstance);

	public Mailbox findById(java.lang.Integer id);

	public List findByExample(Mailbox instance);

	public List findByProperty(String propertyName, Object value);

	public List findByMailId(Object mailId);

	public List findBySenderId(Object senderId);

	public List findByReceiverId(Object receiverId);
	
	public List findBySenderReceiver(Integer senderId, Integer receiverId);

	public List findByState(Object state);

	public List findByTitle(Object title);

	public List findAll();
	
	public List findBySenderReceiver(Object senderId, Object receiverId);

	public Mailbox merge(Mailbox detachedInstance);

	public void attachDirty(Mailbox instance);

	public void attachClean(Mailbox instance);
}
